package com.example.warehouse.sys.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_permission")
public class SysPermission implements Serializable {
    /*
     * 数据ID
     */
    @ExcelProperty(value = "数据ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;

    /*
     * 父级ID
     */
    @ExcelProperty(value = "父级ID",index = 0)
    private Long pid;

    /*
     * 名称
     */
    @ExcelProperty(value = "名称",index = 0)
    private String name;

    /*
     * 值
     */
    @ExcelProperty(value = "值",index = 0)
    private String value;

    /*
     * 简介
     */
    @ExcelProperty(value = "简介",index = 0)
    private String description;

    /*
     * 是否启用，1=启用，0=未启用
     */
    @ExcelProperty(value = "是否启用",index = 0)
    private Integer enable;

    /*
     * 排序序号
     */
    @ExcelProperty(value = "排序序号",index = 0)
    private Integer sort;

    /*
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 0)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 0)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
